﻿<controls:MetroWindow
    
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        x:Name="MainWindow1" mc:Ignorable="d" x:Class="monitor_server_2_WPF.MainWindow"
        Title="MainWindow" Height="687" Width="1000" Loaded="MainWindow1_Loaded" MinHeight="400" MinWidth="800" 
        ResizeMode="CanResizeWithGrip" WindowStartupLocation="CenterScreen" StateChanged="MainWindow_OnStateChanged" WindowState="Maximized" Closed="MainWindow_OnClosed" Initialized="MainWindow_OnInitialized">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <!--<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />-->
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
                <Setter Property="Visibility" Value="Visible"/>
                <Setter Property="Foreground" Value="White"/>
                <!--<Setter Property="Background" Value="#FF3F3F46"/>-->
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="BorderBrush" Value="#FF54545C"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
                                <Grid SnapsToDevicePixels="True">
                                    <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                </Grid>
                            </Border>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="BorderBrush" Value="#FF6A6A75"/>
                                    <Setter Property="Background" Value="#FF54545C"/>
                                </Trigger>
                                <Trigger Property="IsPressed" Value="True">
                                    <Setter Property="Background" Value="#FF007ACC"/>
                                    <Setter Property="BorderBrush" Value="#FF1C97EA"/>
                                </Trigger>
                                <Trigger Property="IsEnabled" Value="False">
                                    <Setter Property="Opacity" Value="0.5"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
    </Window.Triggers>
    <Grid x:Name="MainGrid" Margin="0,0,0,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="621*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="220"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Menu x:Name="Menu1" Grid.ColumnSpan="2" Margin="0,0,0,0" Height="20" VerticalAlignment="Top"/>
        <StatusBar x:Name="StatusPanel" Background="Gray" Grid.Column="0" Margin="0,0,0,0" Grid.Row="2" Grid.ColumnSpan="2" HorizontalContentAlignment="Stretch">
            <StatusBarItem Height="25" VerticalAlignment="Top">
                <DockPanel>
                    <TextBlock x:Name="UsersOnlineLabel" Text="usersOnlineLabel" Width="Auto" Foreground="White"/>
                    <TextBlock x:Name="UsersOnlinevalue" Text="usersOnlineValue" Width="Auto" Margin="5,0,0,0" Foreground="White"/>
                </DockPanel>
            </StatusBarItem>
            <StatusBarItem Height="25" VerticalAlignment="Top" Margin="20,0,0,0">
                <DockPanel>
                    <TextBlock x:Name="NewLogEntriesLabel" Text="NewLogEntriesLabel" Width="Auto" Foreground="White"/>
                    <TextBlock x:Name="NewLogEntriesValue" Text="NewLogEntriesValue" Width="Auto" Margin="5,0,0,0" Foreground="White"/>
                </DockPanel>
            </StatusBarItem>
            <StatusBarItem Height="25" VerticalAlignment="Top" Margin="20,0,0,0">
                <DockPanel>
                    <TextBlock x:Name="LastLogSaveTimeLabel" Text="LastLogSaveTimeLabel" Width="Auto" Foreground="White"/>
                    <TextBlock x:Name="LastLogSaveTimeValue" Text="N/A" Width="Auto" Margin="5,0,0,0" Foreground="White"/>
                </DockPanel>
            </StatusBarItem>
            <StatusBarItem Height="25" VerticalAlignment="Top" Margin="20,0,0,0">
                <DockPanel>
                    <TextBlock x:Name="BizssCompleteTimeLabel" Text="BizssCompleteTimeLabel" Width="Auto" Foreground="White"/>
                    <TextBlock x:Name="BizssCompleteTimeValue" Text="N/A" Width="Auto" Margin="5,0,0,0" Foreground="White"/>
                </DockPanel>
            </StatusBarItem>
            <StatusBarItem Height="25" VerticalAlignment="Top" HorizontalAlignment="Right">
                <DockPanel>
                    <TextBlock x:Name="UserNameLabel" Margin="0,0,5,0" Foreground="White">UserName:</TextBlock>
                    <TextBlock x:Name="AccessLabel" Text="" Width="auto" Foreground="White" Margin="0,0,5,0"/>
                    <Button x:Name="AutorizeButton" Content="Button" Style="{DynamicResource ButtonStyle1}" Click="AutorizeButton_Click"/>
                    <TextBlock x:Name="EmptyLabel" Text="" Width="auto" Foreground="White" Margin="18,0,0,0"/>
                </DockPanel>

            </StatusBarItem>
        </StatusBar>

        <StackPanel x:Name="CategoriesList" Grid.Row="1">
        </StackPanel>
        <!--<ScrollViewer x:Name="Stpanel" Grid.Column="1" Margin="0,0,0,0" Grid.Row="1" VerticalScrollBarVisibility="Auto">-->
        <Grid x:Name="Stpanel1" ScrollViewer.CanContentScroll="True" Grid.Column="1" Margin="0,0,0,0" Grid.Row="1"/>
        <!--</ScrollViewer>-->
    </Grid>

    
    
</controls:MetroWindow>

